<?php
header('Content-type:text/html;charset=utf-8');
echo $_COOKIE['hd'];
echo '<br/>';
$cart = $_COOKIE['cart'];
//反序列化把字符串变为数组
$cart = unserialize($cart);
print_r($cart);